FROM 10.10.100.118/library/openjdk8-openj9:alpine-slim


#验证码字体包
RUN sed -i 's/dl-cdn.alpinelinux.org/mirrors.aliyun.com/g' /etc/apk/repositories
RUN set -xe && apk --no-cache add ttf-dejavu fontconfig

RUN mkdir -p /blade/atlas-bridge-mysql

WORKDIR /blade/atlas-bridge-mysql

EXPOSE 8200

ADD ./target/atlas-bridge-mysql.jar ./app.jar

ENTRYPOINT ["java", "-Djava.security.egd=file:/dev/./urandom", "-jar", "app.jar"]

CMD ["--spring.profiles.active=test"]
